//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "common\fn_actionSetParams.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_action","_params"];
DEFAULT_PARAM(_action,0,[]);
DEFAULT_PARAM(_params,1,[]);
if (count _action <= 0) then {
	_action = call CFUNC(hashEmpty);
	_action = [_action] call FFUNC(actionSetID);
	_action = [_action,"REGISTER"] call FFUNC(actionSetType);
};
_action = [_action, "__ACTION_PARAMETERS__",_params] call CFUNC(HashSet);
TRACE_1("End",_action);
TMFPROFILERSTOP;
_action;